package com.castlzl.random.annotation;

import com.castlzl.random.config.RandomIdAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 启用分布式ID生成器的注解
 * 在Spring Boot应用的启动类上添加此注解来启用分布式ID生成功能
 * @author leiziliang
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(RandomIdAutoConfiguration.class)
@ComponentScan(basePackages = {"com.castlzl.random"})
public @interface EnableRandomIDServer {
}